Optimal. Leaf size=60 \[ -\frac {b c}{6 x^{3/2}}-\frac {b c^3}{2 \sqrt {x}}+\frac {1}{2} b c^4 \tanh ^{-1}\left (c \sqrt {x}\right )-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {6037, 53, 65,
212} \begin {gather*} -\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 x^2}+\frac {1}{2} b c^4 \tanh ^{-1}\left (c \sqrt {x}\right )-\frac {b c^3}{2 \sqrt {x}}-\frac {b c}{6 x^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 53
Rule 65
Rule 212
Rule 6037
Rubi steps
\begin {align*} \int \frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{x^3} \, dx &=-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 x^2}+\frac {1}{4} (b c) \int \frac {1}{x^{5/2} \left (1-c^2 x\right )} \, dx\\ &=-\frac {b c}{6 x^{3/2}}-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 x^2}+\frac {1}{4} \left (b c^3\right ) \int \frac {1}{x^{3/2} \left (1-c^2 x\right )} \, dx\\ &=-\frac {b c}{6 x^{3/2}}-\frac {b c^3}{2 \sqrt {x}}-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 x^2}+\frac {1}{4} \left (b c^5\right ) \int \frac {1}{\sqrt {x} \left (1-c^2 x\right )} \, dx\\ &=-\frac {b c}{6 x^{3/2}}-\frac {b c^3}{2 \sqrt {x}}-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 x^2}+\frac {1}{2} \left (b c^5\right ) \text {Subst}\left (\int \frac {1}{1-c^2 x^2} \, dx,x,\sqrt {x}\right )\\ &=-\frac {b c}{6 x^{3/2}}-\frac {b c^3}{2 \sqrt {x}}+\frac {1}{2} b c^4 \tanh ^{-1}\left (c \sqrt {x}\right )-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 x^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 86, normalized size = 1.43 \begin {gather*} -\frac {a}{2 x^2}-\frac {b c}{6 x^{3/2}}-\frac {b c^3}{2 \sqrt {x}}-\frac {b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 x^2}-\frac {1}{4} b c^4 \log \left (1-c \sqrt {x}\right )+\frac {1}{4} b c^4 \log \left (1+c \sqrt {x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 71, normalized size = 1.18
method | result | size |
derivativedivides | \(2 c^{4} \left (-\frac {a}{4 c^{4} x^{2}}-\frac {b \arctanh \left (c \sqrt {x}\right )}{4 c^{4} x^{2}}-\frac {b \ln \left (c \sqrt {x}-1\right )}{8}-\frac {b}{12 c^{3} x^{\frac {3}{2}}}-\frac {b}{4 c \sqrt {x}}+\frac {b \ln \left (1+c \sqrt {x}\right )}{8}\right )\) | \(71\) |
default | \(2 c^{4} \left (-\frac {a}{4 c^{4} x^{2}}-\frac {b \arctanh \left (c \sqrt {x}\right )}{4 c^{4} x^{2}}-\frac {b \ln \left (c \sqrt {x}-1\right )}{8}-\frac {b}{12 c^{3} x^{\frac {3}{2}}}-\frac {b}{4 c \sqrt {x}}+\frac {b \ln \left (1+c \sqrt {x}\right )}{8}\right )\) | \(71\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 64, normalized size = 1.07 \begin {gather*} \frac {1}{12} \, {\left ({\left (3 \, c^{3} \log \left (c \sqrt {x} + 1\right ) - 3 \, c^{3} \log \left (c \sqrt {x} - 1\right ) - \frac {2 \, {\left (3 \, c^{2} x + 1\right )}}{x^{\frac {3}{2}}}\right )} c - \frac {6 \, \operatorname {artanh}\left (c \sqrt {x}\right )}{x^{2}}\right )} b - \frac {a}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 64, normalized size = 1.07 \begin {gather*} \frac {3 \, {\left (b c^{4} x^{2} - b\right )} \log \left (-\frac {c^{2} x + 2 \, c \sqrt {x} + 1}{c^{2} x - 1}\right ) - 2 \, {\left (3 \, b c^{3} x + b c\right )} \sqrt {x} - 6 \, a}{12 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 342 vs.
\(2 (56) = 112\).
time = 9.70, size = 342, normalized size = 5.70 \begin {gather*} \begin {cases} - \frac {a}{2 x^{2}} + \frac {b \operatorname {atanh}{\left (\sqrt {x} \sqrt {\frac {1}{x}} \right )}}{2 x^{2}} & \text {for}\: c = - \sqrt {\frac {1}{x}} \\- \frac {a}{2 x^{2}} - \frac {b \operatorname {atanh}{\left (\sqrt {x} \sqrt {\frac {1}{x}} \right )}}{2 x^{2}} & \text {for}\: c = \sqrt {\frac {1}{x}} \\- \frac {3 a c^{2} x^{\frac {3}{2}}}{6 c^{2} x^{\frac {7}{2}} - 6 x^{\frac {5}{2}}} + \frac {3 a \sqrt {x}}{6 c^{2} x^{\frac {7}{2}} - 6 x^{\frac {5}{2}}} + \frac {3 b c^{6} x^{\frac {7}{2}} \operatorname {atanh}{\left (c \sqrt {x} \right )}}{6 c^{2} x^{\frac {7}{2}} - 6 x^{\frac {5}{2}}} - \frac {3 b c^{5} x^{3}}{6 c^{2} x^{\frac {7}{2}} - 6 x^{\frac {5}{2}}} - \frac {3 b c^{4} x^{\frac {5}{2}} \operatorname {atanh}{\left (c \sqrt {x} \right )}}{6 c^{2} x^{\frac {7}{2}} - 6 x^{\frac {5}{2}}} + \frac {2 b c^{3} x^{2}}{6 c^{2} x^{\frac {7}{2}} - 6 x^{\frac {5}{2}}} - \frac {3 b c^{2} x^{\frac {3}{2}} \operatorname {atanh}{\left (c \sqrt {x} \right )}}{6 c^{2} x^{\frac {7}{2}} - 6 x^{\frac {5}{2}}} + \frac {b c x}{6 c^{2} x^{\frac {7}{2}} - 6 x^{\frac {5}{2}}} + \frac {3 b \sqrt {x} \operatorname {atanh}{\left (c \sqrt {x} \right )}}{6 c^{2} x^{\frac {7}{2}} - 6 x^{\frac {5}{2}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 356 vs.
\(2 (44) = 88\).
time = 0.44, size = 356, normalized size = 5.93 \begin {gather*} \frac {2}{3} \, c {\left (\frac {3 \, {\left (\frac {{\left (c \sqrt {x} + 1\right )}^{3} b c^{3}}{{\left (c \sqrt {x} - 1\right )}^{3}} + \frac {{\left (c \sqrt {x} + 1\right )} b c^{3}}{c \sqrt {x} - 1}\right )} \log \left (-\frac {c \sqrt {x} + 1}{c \sqrt {x} - 1}\right )}{\frac {{\left (c \sqrt {x} + 1\right )}^{4}}{{\left (c \sqrt {x} - 1\right )}^{4}} + \frac {4 \, {\left (c \sqrt {x} + 1\right )}^{3}}{{\left (c \sqrt {x} - 1\right )}^{3}} + \frac {6 \, {\left (c \sqrt {x} + 1\right )}^{2}}{{\left (c \sqrt {x} - 1\right )}^{2}} + \frac {4 \, {\left (c \sqrt {x} + 1\right )}}{c \sqrt {x} - 1} + 1} + \frac {\frac {6 \, {\left (c \sqrt {x} + 1\right )}^{3} a c^{3}}{{\left (c \sqrt {x} - 1\right )}^{3}} + \frac {6 \, {\left (c \sqrt {x} + 1\right )} a c^{3}}{c \sqrt {x} - 1} + \frac {3 \, {\left (c \sqrt {x} + 1\right )}^{3} b c^{3}}{{\left (c \sqrt {x} - 1\right )}^{3}} + \frac {6 \, {\left (c \sqrt {x} + 1\right )}^{2} b c^{3}}{{\left (c \sqrt {x} - 1\right )}^{2}} + \frac {5 \, {\left (c \sqrt {x} + 1\right )} b c^{3}}{c \sqrt {x} - 1} + 2 \, b c^{3}}{\frac {{\left (c \sqrt {x} + 1\right )}^{4}}{{\left (c \sqrt {x} - 1\right )}^{4}} + \frac {4 \, {\left (c \sqrt {x} + 1\right )}^{3}}{{\left (c \sqrt {x} - 1\right )}^{3}} + \frac {6 \, {\left (c \sqrt {x} + 1\right )}^{2}}{{\left (c \sqrt {x} - 1\right )}^{2}} + \frac {4 \, {\left (c \sqrt {x} + 1\right )}}{c \sqrt {x} - 1} + 1}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.36, size = 61, normalized size = 1.02 \begin {gather*} \frac {b\,c^4\,\mathrm {atanh}\left (c\,\sqrt {x}\right )}{2}-\frac {b\,\left (3\,\ln \left (c\,\sqrt {x}+1\right )-3\,\ln \left (1-c\,\sqrt {x}\right )+2\,c\,\sqrt {x}+6\,c^3\,x^{3/2}\right )}{12\,x^2}-\frac {a}{2\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________